//
//  FlashCards.m
//  FlashCards
//
//  Created by Home on 2/2/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//



#import "FlashCards.h"

static FlashCards * shared = NULL;


@implementation FlashCards

@synthesize contentList, currentCardNumber;



+(FlashCards *)sharedFlashCards  
{
	@synchronized(self) {
		if ( !shared || shared == NULL ) {
			shared = [[FlashCards alloc] init];
		}
	}
	return shared;
}



-(id) init
{
	if ( self = [super init] ) {

        NSString *path = [[NSBundle mainBundle] pathForResource:@"content_iPhone" ofType:@"plist"];
        self.contentList = [NSArray arrayWithContentsOfFile:path];
        self.currentCardNumber = 1;
		
	}
	
	return self;
}
@end
